package com.mpyy.service.sales;

import com.mpyy.pojo.*;

import java.util.List;

public interface SellCurrentAccountingServiceInter {
    /**
     * 查询销售表的最早的时间
     * @return
     */
    SaleOrder searchMortgageDataSaleOrder();

    /**
     * 查询商品退货的最早时间
     * @return
     */
    SaleReturn searchMortgageDataSaleReturn();

    /**
     * 查询往来账务的上部分表格内的数据
     * @param currentAccountingCustomers
     * @return
     */
    List<CurrentAccountingCustomers> currentAccounting(CurrentAccountingCustomers currentAccountingCustomers);

    /**
     * 单据的详细信息
     * @param saleOrderDescAndSaleReturn
     * @return
     */
    List<SaleOrderDescAndSaleReturn> detailsOfTheDocument(SaleOrderDescAndSaleReturn saleOrderDescAndSaleReturn);

    /**
     * 查询客户表的数据
     * @param customerInfo
     * @return
     */
    List<CustomerInfo> customerAllInfo(CustomerInfo customerInfo);

    /**
     * 根据销售单号删除销售订单信息
     * @param saleOrder
     * @return
     */
    int deleteSaleOrderAndDescInfo(SaleOrder saleOrder, SaleOrderDesc saleOrderDesc);

    /**
     * 根据销售单号删除退货订单信息
     * @param saleReturn
     * @param saleReturnDesc
     * @return
     */
    int deleteSaleReturnAndDescInfo(SaleReturn saleReturn, SaleReturnDesc saleReturnDesc);

    /**
     * 查询客户消费情况数据
     * @param saleOrderDesc
     * @return
     */
    List<SaleOrderDesc> customerConsumption(SaleOrderDesc saleOrderDesc);

    /**
     * 查询客户账务信息数据
     * @param customerAccountingInformation
     * @return
     */
    List<CustomerAccountingInformation> customerAccountInformate(CustomerAccountingInformation customerAccountingInformation);
}
